package cn.edu.pku.action;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.edu.pku.dao.DepartmentDao;
import cn.edu.pku.dao.PositionDao;
import cn.edu.pku.dao.SalarystandardDao;
import cn.edu.pku.dao.TitleDao;
import cn.edu.pku.dao.UserDao;
import cn.edu.pku.model.Department;
import cn.edu.pku.model.Position;
import cn.edu.pku.model.Salarystandard;
import cn.edu.pku.model.Title;

import com.opensymphony.xwork2.ActionSupport;

public class SearchSalarystandardSelectAction extends ActionSupport implements BaseAction {
	/**
	 * 
	 */
	private HttpServletRequest request;
	private HttpServletResponse response;
	private Map att;

	private DepartmentDao departmentDao;
	private PositionDao positionDao;
	private TitleDao titleDao;
	private SalarystandardDao salarystandardDao;
	private List<Salarystandard> salarystandards;
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub

		salarystandards = salarystandardDao.findAll();


		return SUCCESS;
	}

	

	public List<Salarystandard> getSalarystandards() {
		return salarystandards;
	}



	public void setSalarystandards(List<Salarystandard> salarystandards) {
		this.salarystandards = salarystandards;
	}



	public DepartmentDao getDepartmentDao() {
		return departmentDao;
	}

	public void setDepartmentDao(DepartmentDao departmentDao) {
		this.departmentDao = departmentDao;
	}

	public PositionDao getPositionDao() {
		return positionDao;
	}

	public void setPositionDao(PositionDao positionDao) {
		this.positionDao = positionDao;
	}
	

	public SalarystandardDao getSalarystandardDao() {
		return salarystandardDao;
	}



	public void setSalarystandardDao(SalarystandardDao salarystandardDao) {
		this.salarystandardDao = salarystandardDao;
	}



	public TitleDao getTitleDao() {
		return titleDao;
	}

	public void setTitleDao(TitleDao titleDao) {
		this.titleDao = titleDao;
	}

	@Override
	public void setServletRequest(HttpServletRequest request) {
		// TODO Auto-generated method stub
		this.request = request;
	}

	@Override
	public void setServletResponse(HttpServletResponse response) {
		// TODO Auto-generated method stub
		this.response = response;
	}

	@Override
	public void setSession(Map att) {
		// TODO Auto-generated method stub
		this.att = att;
	}
}
